﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using WebSite.Model;

namespace WebSite.Data.NH.Repositories.Mappings
{
    public class AdminUserMap : ClassMap<AdminUserInfo>
    {
        public AdminUserMap()
        {
            Table("AdminUserInfo");
            LazyLoad();
            Id(x => x.UserId).GeneratedBy.Identity().Column("UserId");
            Map(x => x.UserName).Column("UserName");
            Map(x => x.Password).Column("Password");
            Map(x => x.TrueName).Column("TrueName");
            Map(x => x.CreateDate).Column("CreateDate");
            Map(x => x.UserState).Column("UserState");
            Map(x => x.CompanyId).Column("CompanyId");
        }
    }
}
